import java.util.Random;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 0
 * Date: 2023-04-27
 * Time: 19:27
 */
public class Test {
    public static void main(String[] args) {
        for (int i = 1; i <= 9; i++) {
            for (int j = 1; j <= i; j++) {
                System.out.print(j+"*"+i +"="+i*j+" ");
            }
            System.out.println();
        }
    }
    public static void main13(String[] args) {
        int num = 7;
        int i = 2;
        for (; i <= Math.sqrt(num); i++) {
            if(num % i == 0) {
                System.out.println("不是素数！");
                break;
            }
        }
        if(i > Math.sqrt(num)) {
            System.out.println("是素数！");
        }
    }

    public static void main12(String[] args) {
        int num = 8;
        int i = 2;
        for (; i <= num/2; i++) {
            if(num % i == 0) {
                System.out.println("不是素数！");
                break;
            }
        }
        if(i > num/2) {
            System.out.println("是素数！");
        }
    }
    public static void main11(String[] args) {
        int num = 7;
        int i = 2;
        for (; i < num; i++) {
            if(num % i == 0) {
                System.out.println("不是素数！");
                break;
            }
        }
        if(i == num) {
            System.out.println("是素数！");
        }
    }
    public static void main10(String[] args) {
        Scanner scan = new Scanner(System.in);
        Random random = new Random();
        //int randNum = random.nextInt(100)+50;//[50-150)
        //int randNum = random.nextInt(50)+50;//[50-100)      [50,100]
        int randNum = random.nextInt(100);//[0-100) --> [50-100)
        System.out.println("作弊："+randNum);
        while (true) {
            int n = scan.nextInt();
            if(n < randNum) {
                System.out.println("你猜小了！");
            }else if(n == randNum) {
                System.out.println("你猜对了！");
                break;
            }else {
                System.out.println("你猜大了！");
            }
        }

    }
    public static void main9(String[] args) {
        Scanner scan = new Scanner(System.in);
        while (scan.hasNextInt()) {
            int a = scan.nextInt();
            System.out.println(a);
        }
    }
}
